package com.fulong.utils.v2.report.dealer;

import org.junit.Test;
import xu.jiang.report.Param;
import xu.jiang.report.dealer.report.MyReportDealer;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;


public class A {

	
	@Test
	public void testDealer() throws Exception {
		
		Param p = new Param();
		
		
//		p.templet = new File("F:\\a\\handoverTemplet\\sh\\SH3503-J113表-合格焊工登记表.xlsx");
		p.templet = new File("F:\\a\\handoverTemplet\\sh\\SH3543-G401表-管道焊接接头无损检测日委托单.xlsx");


		MyReportDealer dealer = new MyReportDealer(p) {
			@Override
			public List<Object[]> createSQLQuery(String sql,List<String> columns) {
				return null;
			}
		};

		File f = dealer.start();
		
		Files.move(f.toPath(), Paths.get("F:/a.xlsx"));
		System.out.println("success");
	}
	
	/**
	 * @apiNote 输出 数组数据
	 * @throws Exception
	 */
	@Test
	public void test4ArrayData() throws Exception {
		
	
		
	} 
	
	
}
